<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="author" content="wangbo">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    *{margin: 0;padding: 0;}
    div{
      position:static;
      margin-left: 300px;
      width: 800px;
      height: 800px;
      background-color: black;
    }
    p{
      width: 100px;
      height: 100px;
      background-color: aqua;
      position: absolute;
      left: 200px;
      top: 200px;
    }
  </style>
</head>

<body>

  <div>
    <p>

    </p>
  </div>


  <script>
    //   console.log([10,20].slice());
    //  console.log(Array.prototype.slice.apply([10,20]));  

    console.log(111);

    setTimeout(() => {
      console.log(222);
    }, 0),


    console.log(333);
    // while (true) {

    // }
  </script>
</body>

</html>